/**
 * User: ShenBo
 * Created on: 2009-5-28, 20:43:09
 */

package shenbo.fetionlib;

public class FetionAccount {

    public enum AccountType {
        SID, MobileNo
    }

    private String id;
    private String password;

    private AccountType accountType;

    public FetionAccount(String id, String password, AccountType accountType) {
        this.id = id;
        this.password = password;
        this.accountType = accountType;
    }

    public String getLoginUrl() {
        return accountType.name().toLowerCase() + "=" + id + "&pwd=" + password;
    }
}
